/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package downloadmanager.component;

import java.awt.event.ActionListener;
import javax.swing.JMenuItem;

/**
 * Same as JMenuItem, but allow jam-packed constructor
 * @author Administrator
 */
public class XMenuItem extends JMenuItem {

    public XMenuItem(String text, int mnemonic, ActionListener click, JMenuItem... subs) {
        super(text, mnemonic);
        addActionListener(click);
        for (JMenuItem sub : subs) {
            add(sub);
        }
    }
}
